SUBDIRS     := $(wildcard */.)
PLUGIN_URL  := https://packages.baidu.com/app/openrasp/plugin.js

default: $(SUBDIRS)
$(SUBDIRS):
	$(MAKE) -C $@ build

.PHONY: default $(SUBDIRS)

# 编译java版本
compile_java:
	rm -rf $(RELEASE_DIR)/java/
	make -C java6 compile

# 编译PHP 5.X/7.X 版本
compile_php:
	for dir in $(wildcard php*/.); do \
        $(MAKE) -C $$dir compile; \
    done

# 编译管理后台
compile_panel:
	$(MAKE) -C panel compile 

# 编译全部
compile: compile_java compile_php compile_panel
